/*1-100之前所有数的和*/
/*
let i = 1;
let sum = 0;
while (i <= 100) {
    sum += i;
    i++;
}
console.log(sum);

do {
    sum += i;
    i++;
} while (i <= 100)*/

let i = 10;
//while for 先判断，在执行.0
/*
while (i > 10) {
    console.log(i)
    i++;
}*/
//循环体至少执行一次
do {
    console.log(i)
    i++;
} while (i > 10);